QT += quick concurrent core widgets opengl script
CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

unix {
    QMAKE_CXXFLAGS += -fopenmp
    LIBS += -lgomp -lpthread
}

# build dir
BuildDir =build_$$QT_VERSION

CONFIG(debug, debug|release) {
    DESTDIR = $$PWD/$$BuildDir/debug
    OBJECTS_DIR = $$PWD/$$BuildDir/debug/.obj
    MOC_DIR = $$PWD/$$BuildDir/debug/.moc
    RCC_DIR = $$PWD/$$BuildDir/debug/.rcc
    UI_DIR = $$PWD/$$BuildDir/debug/.ui
} else {
    DESTDIR = $$PWD/$$BuildDir/release
    OBJECTS_DIR = $$PWD/$$BuildDir/release/.obj
    MOC_DIR = $$PWD/$$BuildDir/release/.moc
    RCC_DIR = $$PWD/$$BuildDir/release/.rcc
    UI_DIR = $$PWD/$$BuildDir/release/.ui
}

SOURCES += \
        main.cpp \
    core/ecs/entity.cpp \
    core/ecs/component.cpp \
    core/ecs/system.cpp \
    core/ecs/entitymanager.cpp \
    core/views/mainwindow.cpp \
    core/entities/spotentity.cpp \
    core/ecs/systemmanager.cpp \
    core/entities/unoboardentity.cpp \
    core/entities/pinentity.cpp \
    core/entities/connectorentity.cpp \
    core/systems/connectorsystem.cpp \
    core/entities/roundpinentity.cpp \
    core/entities/whiteledentity.cpp \
    core/entities/groundentity.cpp \
    core/chips/arduino.cpp \
    core/systems/circuitsimsystem.cpp \
    core/aurasim.cpp \
    core/views/workspacewidget.cpp \
    core/views/menubar.cpp \
    core/views/rightpanel.cpp \
    core/widgets/icon.cpp \
    core/views/toolbar.cpp \
    core/utils/entityfactory.cpp \
    core/entities/elements/dt2821b.cpp \
    core/entities/elements/dt2821a.cpp \
    core/boardEngine/servuno.cpp \
    core/entities/logicChips/logicchipbaseentity.cpp \
    core/entities/logicChips/chip74ls138.cpp \
    core/entities/logicChips/chip74lcx157d.cpp

RESOURCES += qml.qrc \
    res.qrc

#INCLUDEPATH += /usr/include/servuno
#LIBS += -L/usr/lib/ -lservuno

# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =

# Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

include($$PWD/QLogger/QLogger.pri)
INCLUDEPATH += $$PWD/QLogger

HEADERS += \
    core/ecs/entity.h \
    core/ecs/component.h \
    core/ecs/system.h \
    core/ecs/entitymanager.h \
    core/views/mainwindow.h \
    core/global/defines.h \
    core/entities/spotentity.h \
    core/ecs/systemmanager.h \
    core/entities/unoboardentity.h \
    core/entities/pinentity.h \
    core/entities/connectorentity.h \
    core/systems/connectorsystem.h \
    core/entities/roundpinentity.h \
    core/entities/whiteledentity.h \
    core/entities/groundentity.h \
    core/chips/arduino.h \
    core/systems/circuitsimsystem.h \
    core/aurasim.h \
    core/views/workspacewidget.h \
    core/views/menubar.h \
    core/views/rightpanel.h \
    core/widgets/icon.h \
    core/views/toolbar.h \
    core/utils/entityfactory.h \
    core/entities/elements/dt2821b.h \
    core/entities/elements/dt2821a.h \
    core/boardEngine/servuno.h \
    core/entities/logicChips/logicchipbaseentity.h \
    core/entities/logicChips/chip74ls138.h \
    core/entities/logicChips/chip74lcx157d.h

DISTFILES +=

DESTDIR = $$PWD/../../build
